﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static YunShop_WebAPI.Model.VdianItemBatchAddResp;

namespace YunShop_WebAPI.Model
{
    public class VdianItemBatchAddResp
    {

        /// <summary>
        ///  
        /// </summary>
        public int code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Data data { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string message { get; set; }


    }





    public class Data
    {
        /// <summary>
        /// 错误码列表
        /// </summary>
        public Dictionary<string, long> failCodes { get; set; }
        /// <summary>
        /// 错误原因列表
        /// </summary>
        public Dictionary<string, string> fails { get; set; }
        /// <summary>
        /// 错误原因列表
        /// </summary>
        public Dictionary<string, FailInfo> itemFailInfoMap { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Dictionary<string, SuccessInfo> successes { get; set; }


        public class FailInfo
        {
            /// <summary>
            /// 传过来的唯一标识
            /// </summary>
            public int failCode { get; set; }
            /// <summary>
            /// 失败原因
            /// </summary>
            public string failReason { get; set; }
        }

        public class SuccessInfo
        {
            /// <summary>
            /// 生成成功的商品编号
            /// </summary>
            public long itemId { get; set; }

        }

    }


}
